<?php
$data['cur_parent_menu']='master';
$data['cur_selected_menu']='coa';
$this->load->view('template/menu_view',$data);
?>
<br/><br/><br/><br />
<div class="gridcenter" style="font-family: 'open sans',arial,sans-serif;font-size: 18px;font-weight:bold;color:#666666;">Tambah Chart Of Accounts (COA)</div>
<br />
<script>
	$(document).ready(function() {
	$("#form_add_coa").validate({
		rules: {
			kode_coa: "required",
			nama_coa : "required"
		},
		messages: {
			kode_coa: " *Kode COA harus diisi",
			nama_coa : " *Nama COA harus diisi"
		}});
	});
</script>
<div class="demo_jui datagrid gridcenter">
<form id="form_add_coa" method="post" action="<?php echo COA ?>process_add_coa">
<table width="700">
	<tr>
		<td width="150">
			Kode COA
		</td>
		<td>
			: <input type="text" name="kode_coa"/>
		</td>
	</tr>
	<tr>
		<td>
			Nama COA
		</td>
		<td>
			: <input type="text" name="nama_coa"/>
		</td>
	</tr>
<!--	<tr>
		<td>
			Tipe :
		</td>
		<td>
			<input type="text" name="tipe"/>
		</td>
	</tr>-->
	<tr>
		<td colspan="2">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2">
			<input type="submit" value="Tambah"/>
			<input type="button" value="Kembali" onclick="location.href='<?php echo COA ?>'"/>
		</td>
	</tr>
</table>
</form>
</div>